package kr.hkit.androidcomplete02.ch16;

import kr.hkit.androidcomplete02.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;

public class BundleDialogFragment extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch16_dialogtest);
	}
	
	public void mOnClick(View v){
		Bundle args = new Bundle();
		args.putString("title", "알립니다");
		args.putString("message", "대화 상자를 열었습니다.");
		
		MyAlertDialogFragment frg = new MyAlertDialogFragment();
		frg.setArguments(args);
		frg.setCancelable(false);
		frg.show(getFragmentManager(), "dialog");
	}
}
